<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="Public/Admin/css/style.css" type="text/css" rel="stylesheet" />
<link href="Public/Admin/css/skin/fonts/font-awesome.min.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="Public/Admin/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="Public/Admin/js/effect.js"></script>
<script type="text/javascript" src="Public/Admin/js/common.js"></script>
</head>

<body class="mainbody">
<!--导航栏-->
<div class="location">
	<a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
    <a href="{{U('Index/index')}}" class="home" target="_blank"><i></i><span>首页</span></a>
    <i class="arrow"></i>
    <span>分类管理</span>
    <i class="arrow"></i>
    <span>分类列表</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div id="floatHead" class="toolbar-wrap" style="height: 52px;">
  <div class="toolbar" style="width: 1693px;">
    <div class="box-wrap">
      <a class="menu-btn"></a>
      <div class="l-list">
        <ul class="icon-list">
          <li><a class="add" href="{{U('Cate/add')}}"><i></i><span>新增</span></a></li>        
        </ul>
      </div>
    </div>
  </div>
</div>
<!--/工具栏-->

<!--列表-->
<div class="table-container">
  <!--隔行变色是用js控制的-->
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
    <tbody><tr class="odd_bg">
      <th align="center" width="12%">分类ID</th>
      <th align="left">分类名称</th>
      <th align="center" width="12%">所属类型</th>
      <th align="center" width="6%">排序</th>
      <th width="12%">操作</th>
    </tr>
  					
	{{foreach from="$data" value="$v"}}
    <tr>
      <!--cid-->
      <td align="center">{{$v['cid']}}</td>
      <!-- 类别名称-->
      <td>{{$v['_name']}}</td>     
      <!--所属类型-->      
      <td align="center">{{$v['tname']}}</td>
      <!--排序-->      
      <td align="center">{{$v['sort']}}</td>
      <!--操作-->
      <td align="center">
        <a href="{{U('addSon',array('cid'=>$v['cid']))}}">添加子类</a>
		<a href="{{U('edit',array('cid'=>$v['cid']))}}">编辑</a>
		<a href="javascript:if(confirm('确认删除吗？')) location.href='{{U('del',array('cid'=>$v['cid']))}}';">删除</a>
      </td>
    </tr>
    {{endforeach}} 
  </tbody></table>
  
</div>
<!--/列表-->


</body>
</html>
